home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ahoy 1987 January
/
Ahoy_Magazine_87-01_1987_Double_L.d64
/
Screens Data C
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
785b
|
27 lines
5 rem *** screens data c ***
10 rem load and run screens data a first: permanent ml begins at 53133
100 a=207:fork=1to3:x=.
105 forj=1to3:readb:readc:readd:x=x+b+c+d:pokec,b:poked,a:next
110 reade:ifx<>ethenprint"error in data line"peek(64)*256+peek(63)
115 x=.:next
150 data143,37748,37749,141,37783,37784,238,37824,37825,227235
155 data238,37861,37862,141,37869,37870,141,38076,38077,228135
160 data142,38082,38083,143,38086,38091,222,40826,40827,234502
590 :
595 rem *** save ml ***
600 print"saving screens c"
605 poke780,8:poke781,8:poke782,255:sys65466
610 n$="0:screens c,p,w"
615 l=len(n$):forj=1tol:poke849+j,asc(mid$(n$,j,1)):next
620 poke780,l:poke781,82:poke782,3:sys65469
635 poke251,59:poke252,147
645 poke780,251:poke781,124:poke782,159:sys65496
650 ifstthengoto700
655 print"screens c saved":stop
660 :
695 rem *** read error channel ***
700 open15,8,15
705 input#15,a,a$,b,c
710 printa,a$,b,c
715 close15:stop